/*
 * @Author: zhuwenzhi
 * @Date: 2023-07-19 20:26:55
 * @LastEditTime: 2023-07-20 14:27:51
 * @LastEditors: zhuwenzhi
 * @FilePath: /interview-tech/docs/.vuepress/config.js
 * @Description:
 * 配置: https://vuepress.vuejs.org/zh/config/#host
 */
const nav = require('./config/nav.js')
const sidebar = require('./config/sidebar.js')

module.exports = {
  title: '技术文档查询',
  description: '整理、总结、内化、提高',
  port: 9990,
  // dest: '.vuepress/dist',
  extraWatchFiles: [
    '.vuepress/config/**', // 使用相对路径
  ],
  theme: undefined, //主题
  themeConfig: {
    // https://vuepress.vuejs.org/zh/theme/default-theme-config.html#%E5%AF%BC%E8%88%AA%E6%A0%8F%E9%93%BE%E6%8E%A5
    // logo: '/assets/img/logo.png',
    nav,
    sidebar,
    lastUpdated: 'Last Updated', // string | boolean
    // 默认值是 true 。设置为 false 来禁用所有页面的 下一篇 链接
    nextLinks: true,
    // 默认值是 true 。设置为 false 来禁用所有页面的 上一篇 链接
    prevLinks: true,
  },
  markdown: {
    // markdown-it-anchor 的选项
    anchor: { permalink: false },
    // markdown-it-toc 的选项
    toc: { includeLevel: [1, 2] },
    // 行数
    lineNumbers: true,
  },
  configureWebpack: {
    resolve: {
      alias: {
        '@assets': '/assets/imgs/',
      },
    },
  },
  base: '/tech',
};
